package edu.yuhf.service;

import edu.yuhf.dao.AdJdbcDaoImpl;
import edu.yuhf.dao.iface.AdDao;
import edu.yuhf.domain.Ad;
import edu.yuhf.service.iface.AdService;

import java.util.List;

public class AdServiceImpl implements AdService {

    private AdDao adDao = new AdJdbcDaoImpl();

    @Override
    public List<Ad> getProvinces() {
        return adDao.queryProvince();
    }

    @Override
    public List<Ad> getCities(String currentProvinceCode) {
        return adDao.queryCity(currentProvinceCode);
    }
}
